﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Lesson01.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ValidationSummary ID="vsSummary" runat="server" ShowMessageBox="true" />
        <asp:Label Text="User name:" runat="server" />
        <asp:TextBox ID="txtUserName" runat="server" />
        <asp:RequiredFieldValidator ID="rfvUserName" runat="server" ErrorMessage="Please input user name"
            ControlToValidate="txtUserName" Text="hehehe" ToolTip="hehehe" Display="Dynamic"
            EnableClientScript="false" SetFocusOnError="true"></asp:RequiredFieldValidator><br />
        <asp:RadioButtonList runat="server">
            <asp:ListItem Text="Option 1" />
            <asp:ListItem Text="Option 2" />
        </asp:RadioButtonList>
        <asp:Button Text="Submit" runat="server" CausesValidation="false" />
    </div>
    </form>
</body>
</html>
